<template>
  <div>
    <TypeNav></TypeNav>
    <ListContainer></ListContainer>
    <Recommend></Recommend>
    <Rank></Rank>
    <Link></Link>
    <Floor
      v-for="flooritem in floorList"
      :key="flooritem.id"
      :flooritem="flooritem"
      :cname="'floor-swiper'+flooritem.id"
    ></Floor>
    <Brand></Brand>
  </div>
</template>

<script>
// import TypeNav from './TypeNav/index.vue'
import ListContainer from "./ListContainer/index.vue"
import Recommend from "./Recommend/index.vue"
import Rank from "./Rank/index.vue"
import Link from "./Like/index.vue"
import Floor from "./Floor/index.vue"
import Brand from "./Brand/index.vue"

import { mapState } from "vuex"
export default {
  name: "Home",
  components: {
    // TypeNav,
    ListContainer,
    Recommend,
    Rank,
    Link,
    Floor,
    Brand,
  },
  computed: {
    ...mapState('home',["floorList"]),
  },

  mounted() {
    this.$store.dispatch("home/getFloorListData")
  },
}
</script>

<style></style>
